﻿using System;
using System.Linq;
using Se.Framework.Common.Data;

namespace Se.Framework.Common.ObjectRegistrySupport
{
    public static class RegistryInitializer
    {
        public static void RegisterAll(Type iRepositoryType)
        {
            ObjectRegistry.Current.RegisterType(typeof(IBusinessLayer<>), typeof(GenericBusinessLayer<>));
            ObjectRegistry.Current.RegisterType(typeof(IRepository<>), iRepositoryType);
        }
    }
}
